package com.fafu.captcha.Controller;

import lombok.extern.slf4j.Slf4j;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
@Slf4j
@RequestMapping("/logger1")
@RestController
public class LoggerLevelController1 {

    @RequestMapping("/print")
    public String print(){
        log.trace("trace的日志");
        log.debug("debug的日志");
        log.info("info的日志");
        log.warn("warn的日志");
        log.error("error的日志");
        return "打印日志";
    }
}
